﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Modal.ascx.vb" Inherits="UserControls_Modal" %>

<style type="text/css">
#popContent
{	border: solid 5px #01478C; 	height: 100; 	font-family: verdana,arial; 
	font-size: 12px; 	color: Blue; 	text-align: center	}
#dragBar
{padding-bottom: 6px; text-align: right; background-color: #01478C;}
#dragBar table
{width:100%;border-width:0px;background-color: #01478C;} 
#dragBar table td
{color:White; font-weight:bolder;} 
#popFooter
{height: 5px; text-align: right; background-color: #01478C;}
#popBody div
{background-color: White;}
</style>

<script type="text/javascript" language="javascript">
    var idConfirm<%=Me.ID %> = '<%=m.clientID%>';
    function Abrir<%=Me.ID %>() { var modal = $find(idConfirm<%=Me.ID %>); modal.show(); }
    function Fechar<%=Me.ID %>() { var modal = $find(idConfirm<%=Me.ID %>); modal.hide(); }
</script>

<asp:HiddenField ID="HFTarget" runat="server" />
<ajax:modalpopupextender runat="server" ID="m" TargetControlID="HFTarget" PopupControlID="popup" CancelControlID="popFecha" PopupDragHandleControlID="popDrag"
    BackgroundCssClass="modalBackground">
</ajax:modalpopupextender>
<asp:Panel runat="server" ID="popup" SkinID="modal" BorderColor="White" ScrollBars="None">
    <div id="popContent">
        <asp:Panel ID="popDrag" runat="server">
        <div id="dragBar">
            <table>
            <tr>
            <td style="text-align:left">
            <asp:Label ID="lblTitulo" runat="server" Text=""></asp:Label>
            </td>
            <td style="text-align:right">
            <asp:Button ID="popFecha" runat="server" Text="x" OnClientClick="return false;" />
            </td>
            </tr>
            </table>            
        </div>
        </asp:Panel>
        
        <div id="popBody">
            <asp:Panel runat="server" ID="PanelScroll" BorderColor="White" ScrollBars="Vertical">
            <div id="rolagem">

<asp:Panel runat="server" ID="PnlEditParam" Visible="false">
<br />
Width: <asp:TextBox runat="server" ID="TxtWidth"></asp:TextBox>
<br />
Height: <asp:TextBox runat="server" ID="TxtHeight"></asp:TextBox>
<br />
Y: <asp:TextBox runat="server" ID="TxtY"></asp:TextBox>
<asp:Button runat="server" ID="BtnAtualiza" Text="Atualiza" />
<br />
</asp:Panel>
            
                <asp:PlaceHolder runat="server" ID="plcHldContent" />    
            </div>
            </asp:Panel>
        </div>

        <div id="popFooter">
            &nbsp;&nbsp;&nbsp;
        </div>
        
    </div>
</asp:Panel>

